{# The snapshot (ui_resources.overview) below the charts: the containers, what loads inside the webserver and the servers outside Docker; the split above them is ``_totals.html``. #} {% from "components/macros/layout.html" import card, progress, ranked_rows %} {% from "components/macros/table.html" import data_table %} {% macro share(value) -%} {{ progress(value / 100, "ok", "Share of this stack", "h-1.5") }}{{ value }}% {%- endmacro %}
{{ resources.note }}
{% else %} {{ data_table([ {"key": "service", "label": "Part", "kind": "link", "target": "#overseer-main"}, {"key": "name", "label": "Container", "kind": "code"}, {"key": "status", "label": "State", "kind": "status"}, {"key": "cpu", "label": figure_names.cpu, "align": "right"}, {"key": "memory_used", "label": figure_names.memory, "align": "right"}, {"key": "share", "label": "Of this stack", "render": share, "align": "right"}, ], resources.rows, empty="No container is running.", row_id="container") }} {% endif %} {% endcall %} {# Inside the webserver, which Docker sees as one container (ui_resources.load_costs). #} {% call card("Inside the webserver", subtitle="To load each service") %} {% if resources.load %} {{ ranked_rows(resources.load.rows, columns=True) }}Each part's own cost: loaded on top of Python and the app's core ({{ resources.load.core }}) and the parts it uses, so a library counts with the first part that needs it. Measured once a day.
{% else %}Measuring what each service costs to load, one at a time.
{% endif %} {% endcall %} {% if resources.outside %} {% call card("Outside Docker") %}The host is what Docker runs on: on Docker Desktop, its VM.